{% extends "base.html" %}{% load i18n %} {% block title %}{% if person %}{{ person.display_name }}{% else %}{% translate "Add team member" %}{% endif %}{% endblock %} {% block content %}

{% if person %}{{ person.display_name }}{% else %}{% translate "Add team member" %}{% endif %}

{% if person %}{% if person.is_supervisor %}

{% translate "Signs in as" %} {{ person.username }}{% if person.get_full_name %} {% translate "or with their two names" %}{% endif %}

{% else %}

{% blocktranslate trimmed with names=person.get_full_name %}Signs in with their two names: {{ names }}{% endblocktranslate %}

{% endif %}{% else %}

{% translate "They will sign in with their two names. The CRM makes a starting password for you to give them in person; they choose their own the first time they sign in." %}

{% endif %}
{% csrf_token %} {% if form.non_field_errors %}
{{ form.non_field_errors|join:" " }}
{% endif %}
{% include "_field.html" with field=form.first_name %} {% include "_field.html" with field=form.last_name %} {% include "_field.html" with field=form.phone %} {% include "_field.html" with field=form.alt_phone %} {% include "_field.html" with field=form.role %} {% include "_field.html" with field=form.language %} {% if person %}{% include "_field.html" with field=form.is_active wide=True %}{% endif %} {% if form.can_plan_shifts %}{% include "_field.html" with field=form.can_plan_shifts wide=True %}{% endif %}
{% translate "Cancel" %}
{% if person %}

{% translate "Sign-in details" %}

{% if blocked_until %}
{% blocktranslate trimmed with time=blocked_until|date:"H:i" %}Sign-in blocked after wrong passwords until {{ time }}{% endblocktranslate %} {% if user.is_superuser %}{% translate "Unblock it if you know it was them, or set a new password below." %}{% else %}{% translate "An administrator can unblock it, or set a new password below." %}{% endif %}
{% endif %} {% if user.is_superuser %}
{% if blocked_until %}
{% csrf_token %}
{% endif %} {% if devices %}
{% csrf_token %}
{% endif %}
{% if devices %}

{% translate "Use this when a phone or computer that was signed in is lost, sold or shared." %}

{% endif %} {% endif %}
{% if name_form %}
{% csrf_token %}

{% translate "Change sign-in name" %}

{% include "_field.html" with field=name_form.username %}
{% endif %}
{% csrf_token %}

{% translate "Set a new password" %}

{% blocktranslate trimmed with name=person.first_name|default:person.username %}Use this when {{ name }} forgets their password.{% endblocktranslate %}

{% translate "The CRM makes one and shows it to you once. They must choose their own when they next sign in. Or type one yourself:" %}

{% include "_field.html" with field=pw_form.new_password %} {% if user.is_superuser and not own %}
{% include "_field.html" with field=pw_form.keep %}
{% endif %}
{% if user.is_super_user and not own %}

{% translate "Delete this person" %}

{% translate "Removes their account for good, for example one made by mistake. If they left the team, turn off Can sign in instead, so their name stays on their past work." %}

{% blocktranslate trimmed with name=person.display_name %}Delete {{ name }}…{% endblocktranslate %}
{% endif %} {% endif %} {% endblock %}